package com.hh.bss.common;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.org.rapid_framework.generator.util.StringHelper;



/**
 * 常量字典类
 * @author kevin
 *
 */
public class ConstantDic {
	public static String ADMIN_USER="admin";
	
	//签约客户类型
	
	public static String CUSTOMER_DIRECT = "DIRECT";  
	public static String CUSTOMER_INDIRECT = "INDIRECT";  
	public static String CUSTOMER_ALL = "ALL"; 
	
	//公司类型
	public static String COMPANY_BD = "BD"; 
	public static String COMPANY_CT = "CT";  
	public static String COMPANY_OD = "OD";  //曾经签约客户(签约过期) 
	
	//暂时固定的角色ID
	public static Integer ROLE_GM=new Integer(6);
	public static Integer ROLE_ACCOUNT=new Integer(1);
	public static Integer ROLE_SC_Manager=new Integer(10);
	public static Integer ROLE_Specialist=new Integer(11);
	public static Integer ROLE_SC_Supervisor=new Integer(12);
	public static Integer ROLE_HR_Manager=new Integer(7);
	public static Integer ROLE_Branch_Manager=new Integer(2);	
	public static Integer ROLE_SUPER_USER=new Integer(13);
	public static Integer ROLE_S1=new Integer(14);
	public static Integer ROLE_S2=new Integer(15);
	public static Integer ROLE_A1=new Integer(17);
	public static Integer ROLE_CONTRACTOR=new Integer(18);
	public static Integer ROLE_Manager=new Integer(8);
	public static Integer ROLE_Consultant=new Integer(5);
	//Business Assistant/Researcher
	public static Integer ROLE_BA=new Integer(4);
	
	//人选标签
	public static String CvTag="CvTag";
	
	//联系人选标签
	public static String CvFlags="CvFlags";
	//外语能力
	public static String CvFLLevel="CvFLLevel";
	//简历完整
	public static String CvIntegrity = "CvIntegrity";
	public static String ExCvIntegrity = "ExCvIntegrity";
	//公司信息完整度
	public static String CompanyIntegrity = "CompanyIntegrity";
	
	public static String CompanyType = "CompanyType";
	//是否有附件
	public static String HasAttachment = "HasAttachment";
	
	//附件类型  
	public static String CvAttachmentType = "CvAttachmentType";
	
	//查询用附件类型
	public static String CvAttachmentQueryType = "CvAttachmentQueryType";
	//资料类型
	public static String DataType = "DataType";
	//操作类型
	public static String OpType = "OpType";
	
	//账单模板
	public static String PnTemplate="PnTemplate";
	public static String PnTemplate_PNT1="PNT1";
	public static String PnTemplate_PNT2="PNT2";
	public static String PnTemplate_PNT3="PNT3";
	public static String PnTemplate_PNT4="PNT4";
	public static String PnTemplate_PNT5="PNT5";
	public static String PnTemplate_PNT6="PNT6";
	public static String PnTemplate_PNT7="PNT7";
	public static String PnTemplate_PNT8="PNT8";
	public static String PnTemplate_PNT9="PNT9";
	
	public static Map AllConstantDicCategory=new HashMap();
	public static String ContactType="ContactType";
	public static String ContactType_MOBILE="M";
	public static String ContactType_TEL="D";
	public static String ContactType_EMAIL="E";
	public static String ContactType_QQ="Q";
	public static String ContactType_MSN="S";
	
	//CR-人选推荐表；PN-付款通知单；IV-面试；OG－发送保证期跟踪；RT-发送候选人感谢信；CI-公司介绍；JD-职位介绍
	public static String EmailTemplateType="EmailTemplateType";
	public static String EmailTemplateType_CR="CR";
	public static String EmailTemplateType_PN="PN";
	public static String EmailTemplateType_KI="KI";
	public static String EmailTemplateType_GI="GI";
	public static String EmailTemplateType_OG="OG";
	public static String EmailTemplateType_RT="RT";
	public static String EmailTemplateType_CI="CI";
	public static String EmailTemplateType_JD="JD";
	public static String EmailTemplateType_JA="JA";
	
	public static String CrType="CrType";
	public static String CrType_CC="CC";
	public static String CrType_CR="CR";
	public static String CrType_GI="GI";
	public static String CrType_KI="KI";
	

	//客户拜访
	//客户电话
	//客户面试
	//顾问面试
	//成功人选跟进
	//人选生日
	public static String PLANTYPE="PlanType";
	public static String PLANTYPE_CV="CV"; //客户拜访
	public static String PLANTYPE_CP="CP"; //客户电话
	public static String PLANTYPE_CI="CI"; //客户面试
	public static String PLANTYPE_GI="GI"; //顾问面试
	public static String PLANTYPE_SF="SF"; //成功人选跟进
	public static String PLANTYPE_CB="CB"; //人选生日
	public static String PLANTYPE_CS="CS"; //人选上班(人选Offer)
	public static String PLANTYPE_RP="RP"; //回款任务   (received payments)
	public static String PLANTYPE_PN="PN"; //PN账单
	public static String PLANTYPE_CR="CR"; //联系记录
	
	
	
	//GI:顾问面试，KI:客户面试，CR:人才推荐，PN:付款通知单，OG－发送保证期跟踪,RT-发送候选人感谢信，CI-公司介绍，JD-职位介绍
	public static String EmailSourceType="EmailSourceType";
	public static String EmailSourceType_GI="GI";
	public static String EmailSourceType_KI="KI";
	public static String EmailSourceType_CR="CR";
	public static String EmailSourceType_PN="PN";
	public static String EmailSourceType_OG="OG";
	public static String EmailSourceType_RT="RT";
	public static String EmailSourceType_CI="CI";
	public static String EmailSourceType_JD="JD";
	
	public static String DIC_STATUS="DIC_STATUS";
	
	public static String SEX_TYPE="SEX";
	public static String SEX_TYPE_M="M";
	public static String SEX_TYPE_F="F";

	public static String MARRIED_TYPE="MARRIED";
	
	//个人级别，组级别，地区级别，公司级
    public static String BUSINESS_LEVEL="BUSINESS_LEVEL";
    public static String BUSINESS_LEVEL_PL="PL";
    public static String BUSINESS_LEVEL_GL="GL";
    public static String BUSINESS_LEVEL_AL="AL";
    public static String BUSINESS_LEVEL_CL="CL";
	
	
	//CT-BD联系人 CP- 合作决策人JC- 职位联系人 FC-收款联系人 JC_FC-职位/收款联系人 
	public static String CUSTOMER_CONTACTER_TYPE="CUSTOMER_CONTACTER";  //联系人类型
	public static String CUSTOMER_CONTACTER_TYPE_CONTACTER="CT"; //BD联系人
	public static String CUSTOMER_CONTACTER_TYPE_COOP="CP"; //合作决策人
	public static String CUSTOMER_CONTACTER_TYPE_JOB_CONTACTER="JC";//职位联系人
	public static String CUSTOMER_CONTACTER_TYPE_FINANCE_CONTACTER="FC";//收款联系人
	//public static String CUSTOMER_CONTACTER_TYPE_JOB_FINANCE="JF";//职位/收款联系人
	
	//MC(职位负责人)，PC(合作顾问)，BA(业务助理)
	public static String JOB_PARTNER_TYPE="JOB_PARTNER";  //联系人类型
	public static String JOB_PARTNER_TYPE_MC="MC";  //联系人类型
	public static String JOB_PARTNER_TYPE_PC="PC";  //联系人类型
	public static String JOB_PARTNER_TYPE_BA="BA";  //联系人类型
	
	
	//预付款
	public static String CUST_PARTNER_TYPE="CUST_PARTNER";  
	public static String CUST_PARTNER_TYPE_MC="MC";  
	public static String CUST_PARTNER_TYPE_PC="PC";  
	
	
	
	public static String JOB_NATRUE_TYPE="JOB_NATURE";  //职位合作性质
	public static String JOB_NATRUE_TYPE_CO="CO";  //客户合作
	public static String JOB_NATRUE_TYPE_RC="RC";  //BD推荐
	
	public static String JOB_IS_PUB="ISPUB";  //是否对外发布
	
	public static String CallSatus="CallStatus";
	public static String PCallSatus="PCallStatus";
	public static String CcResult="CcResult";
	
	//company_cv_crm.crm_type联系方式 C-电话 M-邮件 S-短信 M-面谈 V-视频)
	public static String ContactMethod="ContactMethod";
	public static String ContactMethod_C="C";
	public static String ContactMethod_E="E";
	public static String ContactMethod_S="S";
	public static String ContactMethod_M="M";
	public static String ContactMethod_V="V";
	
	//cv_status F-完整简历  T-临时简历
	public static String CvStatus="CvStatus";
	//cv_from L-导入 H-录入
	public static String CvFrom="CvFrom";
	public static String CvFrom_L="L";
	public static String CvFrom_H="H";
	
	//CC项目人选状态
	//人选进展
	public static String ProjectCvStatus="ProjectCvStatus";
	
	//cv.cv_type从常量选择，人才类型：BD联系人，合作决策人，职位联系人，收款联系人，成功候选人（录入offer后更新），普通候选人
	public static String CvType="CvType";
	   
	//crm_focus 联系目的：A-追简历 I-约见面试 O-其他
	public static String CrmFocus="CrmFocus";
	
	//crm_focus 联系目的：A-追简历 I-约见面试 O-其他
	public static String CcType="CcType";
	   
	 //task_status联系状态：0-计划 1-已经完成
	public static String TaskStatus="TaskStatus";
	   
	//crm_result联系结果 -3：号码不存在 -2：忙音 -1：无接听 0：未达到目的 1：达到目的
	public static String CrmResult="CrmResult";
	   
	 //search_project_interview.result面试结果：-1-未开始 0-未通过 1-搁置 9-通过
	//2012年7月18日 15:31:36  Alvin  面试结果：字典改为：1 已执行、 -1 取消
	public static String InterviewResult="InterviewResult";
	
	//客户面试结果  0  取消、-1 未通过、1 通过
	public static String CustomerInterviewResult= "CustomerInterviewResult"; 
	 //customer_bd.bd_status bd跟进状态 -2不跟进 -1暂时无兴趣 0-联系中 1-感兴趣 2-已发邮件 3-已拜访 4-试合作 5-合同谈判中 6-签订合同
	public static String BdStatus="BdStatus";	   
	 //customer.source_type客户来源：主动开发,业内介绍,其他介绍,活动影响,公司网站,其他渠道
	public static String CustomerSourceType="CustomerSourceType";
	public static String JobStatus="JobStatus"; 
	
	public static String AuditStatus="AuditStatus";  //1 等待审核 2.审核通过  3.审核驳回
	//customer_crm.crm_status联系状态：0-计划 1-已经完成
	public static String CrmStatus="CrmStatus";
	
	//contract_job_close_note.note_status系统自动更新状态 0-未进行 1-已发邮件 2-已发短信 9-邮件和短信均发送
	public static String NoteStatus="NoteStatus";
	
	//customer_contract.contract_type*年收费-年薪-最低收费-预付 *年收费-年薪-最低收费-预付-独家  *年收费-年薪-最低收费-预付-分期付
	public static String ContractType="ContractType";
	public static String ContractLang="ContractLang";
	public static String ContractStyle="ContractStyle";
	//contract_job_cv_offer.status offer状态：-1取消 0-延迟 1-已经上班 ,默认为0
	public static String OfferStatus="OfferStatus";
	//contract_job_cv_offer.adjust_sign调整类型 -1退款1-补款
	public static String OfferAdjust="OfferAdjust";
	//contract_job_cv_offer.pn_status  -1取消,0:初始 1-已出PN,默认为0;标记为”取消“时，需要同步更新PN为取消
	public static String PnStatus="OfferPnStatus";   
	//contract_job_cv_trial.onduty_status候选人上班状态：-2未过试用期 -1离职 0未上班 1-上班
	public static String OndutyStatus="OndutyStatus";
	//contract_job_cv_crm.onduty_status年度候选人上班状态： 0-离职 1-上班
	public static String YearOndutyStatus_SB="2";
	public static String YearOndutyStatus_LZ="4";
	public static String YearOndutyStatus="OndutyStatus";   
	//account_pn.status -1坏账(取消) 0正常 1已发邮件
	public static String AccountPnStatus="AccountPnStatus";
	public static String AccountPnStatus_Cancel="-1";
	public static String AccountPnStatus_OK="0";
	public static String AccountPnStatus_SM="1";
	//account_ar.status -1-未收款 0-部分收款 1-已收款
	public static String AccountArStatus="AccountArStatus";
	
	public static String MoneyType="MoneyType";
	public static String MoneyType_RMB="RMB";
	public static String MoneyType_US="US";
	
	public static String HandleStatus="HandleStatus";
	
	
	public static String ContractStaffRole="ContractStaffRole";
	public static String ContractStaffRole_BDM="BDM";
	public static String ContractStaffRole_BDP="BDP";
	public static String UserStatus="UserStatus";
	public static String AccountInvoiceStatus="AccountInvoiceStatus";
	//1 20-29，2 30-39，3 40-49，4 50-59.
	public static String AgeRange ="AgeRange";  //年龄范围
	//1 
	public static String WorkRange ="WorkRange";  //工作年限
	
	
	//
	public static String MeetingRoomStatus ="MeetingRoomStatus";  //会议室状态
	public static String MeetingRoomType ="MeetingRoomType";  //会议室类型
	public static String PeriodType ="PeriodType";  //周期类型
	public static String MeetingRoomOrderStatus ="MeetingRoomOrderStatus";  //会议室预定状态
	public static String MeetingRoomUseType ="MeetingRoomUseType";  //会议室使用类型
	
	public static String YjType ="YjType";  //业绩类型
	public static String YjmType ="YjmType";  //业绩监控类型
	
	public static String RoleType ="RoleType";  //角色分类
	static {
	   
	   List l=null;
	   
//	   public static String CrType="CrType";
//		public static String CrType_CC="CC";
//		public static String CrType_CR="CR";
//		public static String CrType_GI="GI";
//		public static String CrType_KI="KI";
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic("1","人选"));
	   l.add(new ConstantDic("2","公司"));	   
	   AllConstantDicCategory.put(DataType, l);
	   
	   l=new ArrayList();
	   l.add(new ConstantDic("N","正常"));
	   l.add(new ConstantDic("A","删除"));	   	   
	   AllConstantDicCategory.put(DIC_STATUS, l);
	   
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic("1","新增"));
	   l.add(new ConstantDic("2","修改"));	   
	   AllConstantDicCategory.put(OpType, l);
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic("10","线人"));
	   l.add(new ConstantDic("20","强烈推荐"));
	   l.add(new ConstantDic("30","可用人选"));
	   l.add(new ConstantDic("40","不建议推荐"));
	   l.add(new ConstantDic("50","黑名单"));
	   AllConstantDicCategory.put(CvTag, l);
	   
	   l = new ArrayList();
	   l.add(new ConstantDic("10","重点联系"));
	   l.add(new ConstantDic("20","很感兴趣"));
	   l.add(new ConstantDic("30","可以看看"));
	   l.add(new ConstantDic("40","愿意看机会但不合适"));
	   l.add(new ConstantDic("50","不考虑当前推介职位"));
	   l.add(new ConstantDic("60","不考虑任何职位"));
	   
	   AllConstantDicCategory.put(CvFlags, l);
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic("10","入门","Limited"));
	   l.add(new ConstantDic("20","一般","Average"));
	   l.add(new ConstantDic("30","高级","Advanced"));
	   l.add(new ConstantDic("40","专家","Expert/Native"));	 
	   AllConstantDicCategory.put(CvFLLevel, l);
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic("0","否",""));
	   l.add(new ConstantDic("1","是",""));   	 
	   l.add(new ConstantDic("2","审核通过",""));   	 
	   l.add(new ConstantDic("3","审核被拒",""));   	 
	   AllConstantDicCategory.put(JOB_IS_PUB, l);
	   
	   
	   //简历完整度  CompanyIntegrity
	   l=new ArrayList();	
	   l.add(new ConstantDic("7","不能处理"));
	   l.add(new ConstantDic("12","应届生"));
	   l.add(new ConstantDic("13","无法判断"));
	   l.add(new ConstantDic("1","1"));
	   l.add(new ConstantDic("2","2"));
	   l.add(new ConstantDic("3","3"));
	   l.add(new ConstantDic("4","4"));
	   l.add(new ConstantDic("5","5"));
	   l.add(new ConstantDic("6","6"));
	   l.add(new ConstantDic("10","已处理"));
	   l.add(new ConstantDic("11","单独简历"));
	   l.add(new ConstantDic("8","重复"));
	   l.add(new ConstantDic("9","SC要求删除"));
	   l.add(new ConstantDic("-1","申请删除"));
	   AllConstantDicCategory.put(CvIntegrity, l);
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic("1","1"));
	   l.add(new ConstantDic("2","2"));
	   l.add(new ConstantDic("3","3"));
	   l.add(new ConstantDic("4","4"));
	   l.add(new ConstantDic("5","5"));
	   l.add(new ConstantDic("6","6"));
	   l.add(new ConstantDic("7","7"));
	   l.add(new ConstantDic("8","重复"));
	   l.add(new ConstantDic("9","SC要求删除"));
	   l.add(new ConstantDic("-1","申请删除"));
	   AllConstantDicCategory.put(ExCvIntegrity, l);
	   
	   //公司完整度  CompanyIntegrity
	   l=new ArrayList();	
	   l.add(new ConstantDic("10","已处理"));
	   l.add(new ConstantDic("11","单独公司"));
	   l.add(new ConstantDic("7","不能处理"));
	   l.add(new ConstantDic("13","无法判断"));
	   l.add(new ConstantDic("1","1"));
	   l.add(new ConstantDic("2","2"));
	   l.add(new ConstantDic("3","3"));
	   l.add(new ConstantDic("4","4"));
	   l.add(new ConstantDic("5","5"));
	   l.add(new ConstantDic("-1","申请删除"));
	   AllConstantDicCategory.put(CompanyIntegrity, l);
	   
	   //公司类型 (BD CT(签约) OD(签约过期))
	   l=new ArrayList();	
	   l.add(new ConstantDic("BD","BD客户"));
	  // l.add(new ConstantDic("OD","BD客户(签约过期)"));
	   l.add(new ConstantDic("CT","签约客户"));
	   AllConstantDicCategory.put(CompanyType, l);
	   //是否有附件  HasAttachment
	   l=new ArrayList();	
	   l.add(new ConstantDic("-1","无"));
	   l.add(new ConstantDic("1","有"));
	   AllConstantDicCategory.put(HasAttachment, l);
	   
	   //附件类型(resume-R-简历   certificate-C-证书   photo-P-照片  other-O-其它 )
	   l = new ArrayList();
	   l.add(new ConstantDic("R","简历"));
	   l.add(new ConstantDic("C","证书"));
	   l.add(new ConstantDic("P","照片"));
	   l.add(new ConstantDic("O","其它文档"));
	   AllConstantDicCategory.put(CvAttachmentType, l);
	   
	   //附件类型(查询用)(resume-R-简历   certificate-C-证书   photo-P-照片  other-O-其它  CR-推荐附件- JD-)
	   l = new ArrayList();
	   l.add(new ConstantDic("R","简历"));
	   l.add(new ConstantDic("C","证书"));
	   l.add(new ConstantDic("P","照片"));
	   l.add(new ConstantDic("O","其它文档"));
	   l.add(new ConstantDic(EmailTemplateType_CR,"已发推荐报告"));
	   l.add(new ConstantDic(EmailTemplateType_JD,"已发JD"));
	   AllConstantDicCategory.put(CvAttachmentQueryType, l);
	   
	   l=new ArrayList();	
	   l.add(new ConstantDic(CrType_CC,"CC记录"));
	   l.add(new ConstantDic(CrType_CR,"联系记录"));
	   l.add(new ConstantDic(CrType_GI,"顾问评语"));
	   l.add(new ConstantDic(CrType_KI,"客户面试记录"));	   
	   
	   AllConstantDicCategory.put(CrType, l);
	   
	   //PnTemplate
	   l=new ArrayList();	
	   l.add(new ConstantDic(PnTemplate_PNT1,"箭牌永和工厂A"));
	   l.add(new ConstantDic(PnTemplate_PNT2,"箭牌永和工厂B"));
	   l.add(new ConstantDic(PnTemplate_PNT3,"箭牌总部A"));
	   l.add(new ConstantDic(PnTemplate_PNT4,"箭牌总部B"));
	   l.add(new ConstantDic(PnTemplate_PNT9,"箭牌C"));
	   l.add(new ConstantDic(PnTemplate_PNT5,"施耐德"));
	   l.add(new ConstantDic(PnTemplate_PNT6,"通用"));
	   l.add(new ConstantDic(PnTemplate_PNT7,"退款"));
	   l.add(new ConstantDic(PnTemplate_PNT8,"预付款"));
	   AllConstantDicCategory.put(PnTemplate, l);
	   //人选进展
	   //0 待联系  默认 10 追简历 20顾问面试 30已推荐  40客户面试 50录用 60保证期离职  70保证期通过 -1不考虑
	   l=new ArrayList();	
	   l.add(new ConstantDic("0","待联系"));	   
	   l.add(new ConstantDic("10","联系中"));
	   l.add(new ConstantDic("15","已发JD"));
	   l.add(new ConstantDic("20","顾问面试"));
	   l.add(new ConstantDic("30","已推荐"));
	   l.add(new ConstantDic("40","客户面试"));
	   l.add(new ConstantDic("50","录用"));
	   l.add(new ConstantDic("60","保证期离职"));
	   l.add(new ConstantDic("70","保证期通过"));
	   l.add(new ConstantDic("-10","不考虑"));
	   
	   AllConstantDicCategory.put(ProjectCvStatus, l);
	   
	   

	   l=new ArrayList();	
	   l.add(new ConstantDic(PLANTYPE_CV,"客户拜访"));
	   l.add(new ConstantDic(PLANTYPE_CP,"客户电话"));
	   l.add(new ConstantDic(PLANTYPE_CI,"客户面试"));
	   l.add(new ConstantDic(PLANTYPE_GI,"顾问面试"));
	   l.add(new ConstantDic(PLANTYPE_SF,"成功人选跟进"));	   
	   l.add(new ConstantDic(PLANTYPE_CB,"人选生日"));
	   l.add(new ConstantDic(PLANTYPE_CS,"人选上班"));
	   l.add(new ConstantDic(PLANTYPE_PN,"PN账单"));
	   l.add(new ConstantDic(PLANTYPE_CR,"联系记录"));
	   
	   
	   
	   AllConstantDicCategory.put(PLANTYPE, l);
	   
	   ////CR-人选推荐表；PN-付款通知单；IV-面试；OG－发送保证期跟踪；RT-发送候选人感谢信；CI-公司介绍；JD-职位介绍
	   l=new ArrayList();	
	   l.add(new ConstantDic(EmailTemplateType_CR,"人选推荐"));
	   l.add(new ConstantDic(EmailTemplateType_PN,"付款通知单"));
	   l.add(new ConstantDic(EmailTemplateType_GI,"顾问面试"));
	   l.add(new ConstantDic(EmailTemplateType_KI,"客户面试"));
	   l.add(new ConstantDic(EmailTemplateType_OG,"保证期跟踪"));
	   l.add(new ConstantDic(EmailTemplateType_RT,"候选人感谢信"));
	   l.add(new ConstantDic(EmailTemplateType_CI,"公司介绍"));
	   l.add(new ConstantDic(EmailTemplateType_JD,"职位介绍"));	   
	   AllConstantDicCategory.put(EmailTemplateType, l);
	   
		//个人级别，组级别，地区级别，公司级
	   l=new ArrayList();	
	   l.add(new ConstantDic(BUSINESS_LEVEL_PL,"个人级别"));
	   l.add(new ConstantDic(BUSINESS_LEVEL_GL,"组级别"));
	   l.add(new ConstantDic(BUSINESS_LEVEL_AL,"地区级别"));
	   l.add(new ConstantDic(BUSINESS_LEVEL_CL,"公司级别"));
	   AllConstantDicCategory.put(BUSINESS_LEVEL, l);
	   
	 //GI:顾问面试，KI:客户面试，CR:人才推荐，PN:付款通知单，OG－发送保证期跟踪,RT-发送候选人感谢信，CI-公司介绍，JD-职位介绍
	   l=new ArrayList();
	   l.add(new ConstantDic(EmailSourceType_GI,"顾问面试"));
	   l.add(new ConstantDic(EmailSourceType_KI,"客户面试"));
	   l.add(new ConstantDic(EmailSourceType_CR,"人选推荐"));
	   l.add(new ConstantDic(EmailSourceType_PN,"付款通知单"));	   
	   l.add(new ConstantDic(EmailSourceType_OG,"保证期跟踪"));
	   l.add(new ConstantDic(EmailSourceType_RT,"候选人感谢信"));
	   l.add(new ConstantDic(EmailSourceType_CI,"公司介绍"));
	   l.add(new ConstantDic(EmailSourceType_JD,"职位介绍"));	   
	   AllConstantDicCategory.put(EmailSourceType, l);
	   
	      
	   //CompanyCc.callSatus -3：号码不存在 -2：忙音 -1：无接听 0：无价值通话 1：有效通话
	   //searchProjectCcList 1：人选应答2：非人选应答3：忙音4：无应答5：号码错误/空号
	   l=new ArrayList();	
	   l.add(new ConstantDic("1","人选应答"));
	   l.add(new ConstantDic("0","非人选应答"));
	   l.add(new ConstantDic("-1","忙音"));
	   l.add(new ConstantDic("-2","无应答"));
	   l.add(new ConstantDic("-3","号码错误/空号"));	   
	   AllConstantDicCategory.put(PCallSatus, l);
	   
	    //company_cv_crm.call_status如果是电话联系，记录电话结果，  -3：号码不存在 -2：忙音 -1：无接听 0：无价值通话 1：有效通话
	   l=new ArrayList();	
	   l.add(new ConstantDic("-3","号码不存在"));
	   l.add(new ConstantDic("-2","忙音"));
	   l.add(new ConstantDic("-1","无接听"));
	   l.add(new ConstantDic("-0","无价值通话"));
	   l.add(new ConstantDic("1","有效通话"));
	   AllConstantDicCategory.put(CallSatus, l);
	   
	   //CompanyCc.ccResult -1：无效CC 0：无简历 1：有完整简历
	   //1：还会再联系 2：目标人选 3：其他人选 4：无此部门/岗位 5：实名制 6：CC黑名单 7：无法继续联系
	   l=new ArrayList();	 
	   l.add(new ConstantDic("1","还会再联系"));
	   l.add(new ConstantDic("2","目标人选"));
	   l.add(new ConstantDic("3","其他人选"));
	   l.add(new ConstantDic("4","无此部门/岗位"));
	   l.add(new ConstantDic("5","实名制"));
	   l.add(new ConstantDic("6","CC黑名单"));
	   l.add(new ConstantDic("7","无法继续联系"));
	   l.add(new ConstantDic("8","成功"));
	   AllConstantDicCategory.put(CcResult, l);
	   
	   l=new ArrayList();
	   l.add(new ConstantDic("RMB","RMB"));
	   l.add(new ConstantDic("US","US"));
	   AllConstantDicCategory.put(MoneyType, l);
	   
	   //contactTypeDic = [['电话','D'],['手机','S'],['QQ','Q'],['MSN','M']];
	   //contactTypeDic = [['电话','D'],['手机','M'],['QQ','Q'],['MSN','S']];
	   l=new ArrayList();	 
	   l.add(new ConstantDic("D","电话"));
	   l.add(new ConstantDic("M","手机"));
	   l.add(new ConstantDic("E","email"));
	   l.add(new ConstantDic("Q","QQ"));
	   l.add(new ConstantDic("S","MSN"));
	   AllConstantDicCategory.put(ContactType, l);
	   
	   l=new ArrayList();	 
	   l.add(new ConstantDic(SEX_TYPE_M,"男","Male"));
	   l.add(new ConstantDic(SEX_TYPE_F,"女","Female"));	   
	   AllConstantDicCategory.put(SEX_TYPE, l);
	   
	   //BD联系人 合作决策人 职位联系人 收款联系人
	   l=new ArrayList();	 
	   //l.add(new ConstantDic(CUSTOMER_CONTACTER_TYPE_CONTACTER,"BD联系人"));
	   //l.add(new ConstantDic(CUSTOMER_CONTACTER_TYPE_COOP,"合作决策人"));
	   l.add(new ConstantDic(CUSTOMER_CONTACTER_TYPE_JOB_CONTACTER,"职位联系人"));
	   l.add(new ConstantDic(CUSTOMER_CONTACTER_TYPE_FINANCE_CONTACTER,"收款联系人"));
	   AllConstantDicCategory.put(CUSTOMER_CONTACTER_TYPE, l);
	   
	   
	   //company_cv_crm.crm_type联系方式 C-电话 M-邮件 S-短信 M-面谈  V-视频 )
	   l=new ArrayList();
	   /*
	   l.add(new ConstantDic(ContactMethod_C,"电话"));
	   l.add(new ConstantDic(ContactMethod_E,"邮件"));
	   l.add(new ConstantDic(ContactMethod_S,"短信"));
	   l.add(new ConstantDic(ContactMethod_M,"面谈"));
	   l.add(new ConstantDic(ContactMethod_V,"视频"));
	   */
	   l.add(new ConstantDic(ContactMethod_C,"电话/视频"));
	   l.add(new ConstantDic(ContactMethod_M,"面谈"));
	   l.add(new ConstantDic(ContactMethod_E,"邮件/短信"));
	   
	   AllConstantDicCategory.put(ContactMethod, l);
	   
	   //sex M-男 F-女
	   //married 0-单身 1-已婚无孩 2-已婚有孩
	   l=new ArrayList();	 
	   l.add(new ConstantDic("0","单身","Single"));
	   l.add(new ConstantDic("1","已婚无孩","Married"));
	   l.add(new ConstantDic("2","已婚有孩","Married(has children)"));
	   l.add(new ConstantDic("3","不知道","Unknown"));
	   
	   AllConstantDicCategory.put(MARRIED_TYPE, l);
	   
	   
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic(JOB_NATRUE_TYPE_CO,"已签约职位"));
	   l.add(new ConstantDic(JOB_NATRUE_TYPE_RC,"未签约职位"));
	   AllConstantDicCategory.put(JOB_NATRUE_TYPE, l);
	   //cv_status F-完整简历  T-临时简历
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("F","完整简历"));
	   l.add(new ConstantDic("T","临时简历"));
	   AllConstantDicCategory.put(CvStatus, l);
	   //cv_from L-导入 H-录入
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("L","导入"));
	   l.add(new ConstantDic("H","录入"));
	   AllConstantDicCategory.put(CvFrom, l);
	   //cv.cv_type从常量选择，人才类型：1:BD联系人，2:合作决策人，3:职位联系人，4:收款联系人，5:成功候选人（录入offer后更新），6：普通候选人
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("1","BD联系人"));
	   l.add(new ConstantDic("2","合作决策人"));
	   l.add(new ConstantDic("3","职位联系人"));
	   l.add(new ConstantDic("4","收款联系人"));
	   l.add(new ConstantDic("5","成功候选人"));
	   l.add(new ConstantDic("6","普通候选人"));
	   
	   AllConstantDicCategory.put(CvType, l);
	   
	   //crm_focus 联系目的：A-追简历 I-约见面试 O-其他
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("A","追简历"));
	   l.add(new ConstantDic("I","约见面试"));
	   l.add(new ConstantDic("O","其他"));
	   AllConstantDicCategory.put(CrmFocus, l);
	   
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("A","追简历"));
	   l.add(new ConstantDic("B","约见面试"));
	   l.add(new ConstantDic("C","Cold Call(1st)"));
	   l.add(new ConstantDic("D","Cold Call(再次联系）"));
	   l.add(new ConstantDic("E","求职意向调查（无法获取简历）"));
	   l.add(new ConstantDic("F","求职意向调查（愿意提供简历）"));
	   l.add(new ConstantDic("G","JD介绍"));
	   l.add(new ConstantDic("H","致谢"));
	   l.add(new ConstantDic("I","更新简历"));
	   l.add(new ConstantDic("J","初步面试"));
	   l.add(new ConstantDic("K","面试提醒"));
	   AllConstantDicCategory.put(CcType, l);
	   
	   //task_status联系状态：0-计划 1-已经完成
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","计划"));
	   l.add(new ConstantDic("1","已经完成"));	   
	   AllConstantDicCategory.put(TaskStatus, l);
	   //crm_result联系结果 -3：号码不存在 -2：忙音 -1：无接听 0：未达到目的 1：达到目的
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("-3","号码不存在"));
	   l.add(new ConstantDic("-2","忙音"));
	   l.add(new ConstantDic("-1","无接听"));
	   l.add(new ConstantDic("0","未达到目的"));
	   l.add(new ConstantDic("1","达到目的"));
	   AllConstantDicCategory.put(CrmResult, l);
	   
	   //search_project_interview.result面试结果：-1-未开始 0-未通过 1-搁置 9-通过
	   //-1 面试结果：字典改为：已执行、取消
	   l=new ArrayList();	 	   
	   //l.add(new ConstantDic("-1","未开始"));
	   //l.add(new ConstantDic("0","未通过"));
	   //l.add(new ConstantDic("1","搁置"));
	   //l.add(new ConstantDic("9","通过"));
	   l.add(new ConstantDic("-1","取消"));
	   l.add(new ConstantDic("1","已执行"));
	   AllConstantDicCategory.put(InterviewResult, l);
	   
	   //客户面试结果
	   l=new ArrayList();
	   //取消、未通过、通过
	   l.add(new ConstantDic("-1","未通过"));
	   l.add(new ConstantDic("0","取消"));
	   l.add(new ConstantDic("1","通过"));
	   //l.add(new ConstantDic("9","通过"));
	   AllConstantDicCategory.put(CustomerInterviewResult, l);
	   //customer_bd.bd_status bd跟进状态 -2不跟进 -1暂时无兴趣 0-联系中 1-感兴趣 2-已发邮件 3-已拜访 4-试合作 5-合同谈判中 6-签订合同
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("-2","不跟进"));
	   l.add(new ConstantDic("-1","暂时无兴趣"));
	   l.add(new ConstantDic("0","联系中"));
	   l.add(new ConstantDic("1","感兴趣"));
	   l.add(new ConstantDic("2","已发邮件"));
	   l.add(new ConstantDic("3","已拜访"));
	   l.add(new ConstantDic("4","试合作 "));
	   l.add(new ConstantDic("5","合同谈判中"));
	   l.add(new ConstantDic("5","签订合同"));
	   AllConstantDicCategory.put(BdStatus, l);
	   
	   //customer.source_type客户来源：1:主动开发,2:业内介绍,3:其他介绍,4:活动影响,5:公司网站,6:其他渠道
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("1","主动开发"));
	   l.add(new ConstantDic("2","业内介绍"));
	   l.add(new ConstantDic("3","其他介绍"));
	   l.add(new ConstantDic("4","活动影响"));	   
	   l.add(new ConstantDic("5","公司网站"));
	   l.add(new ConstantDic("6","其他渠道"));
	   AllConstantDicCategory.put(CustomerSourceType, l);
	   
	   //contract_job.status 职位状态 0:新建 1：进行中 2：成功 3：关闭
	   //2012年9月3日 09:41:57 Alvin  删除“进行中”。“完成”改“成功”，“关闭” (需求人:Sarah)
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","新建"));
	   //l.add(new ConstantDic("1","进行中"));
	   l.add(new ConstantDic("2","成功"));
	   l.add(new ConstantDic("3","关闭"));	   	   
	   AllConstantDicCategory.put(JobStatus, l);
	   
	   
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("1","等待审核"));
	   l.add(new ConstantDic("2","已审核"));
	   l.add(new ConstantDic("3","审核被拒"));
	   AllConstantDicCategory.put(AuditStatus, l);
	   
	   
	   //customer_crm.crm_status联系状态：0-计划 1-已经完成
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","计划"));	   
	   l.add(new ConstantDic("1","已经完成"));
	   AllConstantDicCategory.put(CrmStatus, l);
	   //contract_job_partner.role参与人角色,常量选择：MC(职位负责人)，PC(合作顾问)，BA(业务助理),每个职位只有一个MC
	   l=new ArrayList();	 
	   l.add(new ConstantDic(JOB_PARTNER_TYPE_MC,"职位负责人"));
	   l.add(new ConstantDic(JOB_PARTNER_TYPE_PC,"合作顾问"));
	   l.add(new ConstantDic(JOB_PARTNER_TYPE_BA,"业务助理"));
	   AllConstantDicCategory.put(JOB_PARTNER_TYPE, l);
	   
	   
	   l = new ArrayList();
	   
	   l.add(new ConstantDic(CUST_PARTNER_TYPE_MC,"预付款负责人"));
	   l.add(new ConstantDic(CUST_PARTNER_TYPE_PC,"预付款参与顾问"));
	   AllConstantDicCategory.put(CUST_PARTNER_TYPE, l);
	   //contract_job_close_note.note_status系统自动更新状态 0-未进行 1-已发邮件 2-已发短信 9-邮件和短信均发送
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","未进行"));
	   l.add(new ConstantDic("1","已发邮件"));
	   l.add(new ConstantDic("2","已发短信"));
	   l.add(new ConstantDic("9","邮件和短信均发送"));	   	   
	   AllConstantDicCategory.put(NoteStatus, l);
	   //首次签约,续约,非常规合同,客户方合约customer_contract.contract_style
	   l=new ArrayList();	
	   l.add(new ConstantDic("1","首次签约"));
	   l.add(new ConstantDic("2","续约"));
	   l.add(new ConstantDic("3","非常规合同"));
	   l.add(new ConstantDic("4","客户方合约"));
	   AllConstantDicCategory.put(ContractStyle, l);
	   //customer_contract.contract_type
	    //1:固定收费-有预付  2:固定收费  3:年收费-月薪-最低收费-预付  4:年收费-年薪-最低收费 5:年收费-年薪-最低收费-预付 6:年收费-年薪-最低收费-预付-独家 7:年收费-年薪-最低收费-预付-分期付
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("1","固定收费-有预付"));
	   l.add(new ConstantDic("2","固定收费"));
	   l.add(new ConstantDic("7","年收费-年薪"));
	   l.add(new ConstantDic("3","年收费-月薪-最低收费-预付"));
	   l.add(new ConstantDic("4","年收费-年薪-最低收费"));
	   l.add(new ConstantDic("5","年收费-年薪-最低收费-预付"));
	   l.add(new ConstantDic("6","年收费-年薪-最低收费-预付-独家"));
	   l.add(new ConstantDic("7","年收费-年薪-最低收费-预付-分期付"));
	  
	   AllConstantDicCategory.put(ContractType, l);
	  //合同语种customer_contract.lang
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("CH","中文"));
	   l.add(new ConstantDic("EN","英文"));
	   AllConstantDicCategory.put(ContractLang, l);
	   //contract_job_cv_offer.status offer状态：-1客户取消 0-未知 1-已经上班 ,2-人选拒绝  默认为0
	   //2012年7月16日 16:51:55 Alvin “录用offer”。Offer状态字典：未知、人选拒绝、客户取消、已经上班 （20120711）
	   //2012-11-27 10:11:15 Avlin  offer 状态修改中的，等待人选答复改为“人选接受offer”
	   //顺序为：人选接受offer，已经上班，保证期离职，人选拒绝，客户取消
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","人选接受offer"));
	   l.add(new ConstantDic("1","已经上班"));
	   l.add(new ConstantDic("3","保证期离职"));
	   l.add(new ConstantDic("2","人选拒绝offer"));
	   l.add(new ConstantDic("-1","客户取消 "));
	   AllConstantDicCategory.put(OfferStatus, l);
	   //contract_job_cv_offer.adjust_sign调整类型 -1退款1-补款
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("-1","退款 "));	   
	   l.add(new ConstantDic("1","补款"));	   	   	  
	   AllConstantDicCategory.put(OfferAdjust, l);
	   //contract_job_cv_offer.pn_status  -1取消,0:初始 1-已出PN,默认为0;标记为”取消“时，需要同步更新PN为取消
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("-1","取消 "));
	   l.add(new ConstantDic("0","初始"));
	   l.add(new ConstantDic("1","已出PN"));	   	   	  
	   AllConstantDicCategory.put(PnStatus, l);
	   //contract_job_cv_trial.onduty_status候选人上班状态：-2未过试用期 -1离职 0未上班 1-上班
	   /*
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("-2","未过试用期"));
	   l.add(new ConstantDic("-1","离职"));
	   l.add(new ConstantDic("0","未上班"));
	   l.add(new ConstantDic("1","上班"));	   	   	  
	   AllConstantDicCategory.put(OndutyStatus, l);
	   */
	   //contract_job_cv_crm.onduty_status年度候选人上班状态： 0-离职 1-上班 ()
	   ///体检过关，等候入职 正在走离职流程，准备入职 因故取消入职
	   l=new ArrayList();	 	   	   
	   l.add(new ConstantDic("0","体检过关，等候入职"));
	   //l.add(new ConstantDic("1","正在走入职流程，准备入职"));
	   l.add(new ConstantDic("1","正在走离职流程，准备入职")); 
	   l.add(new ConstantDic("2","上班"));
	   l.add(new ConstantDic("3","因故取消入职"));	   
	   l.add(new ConstantDic("4","离职"));	   	   
	   
	   AllConstantDicCategory.put(YearOndutyStatus, l);
	   //account_pn.status -1坏账(取消) 0正常 1已发邮件
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic(AccountPnStatus_Cancel,"坏账/取消"));	   	   
	   l.add(new ConstantDic(AccountPnStatus_OK,"正常"));
	   l.add(new ConstantDic(AccountPnStatus_SM,"已发邮件"));
	   AllConstantDicCategory.put(AccountPnStatus, l);
	   //account_ar.status -1-未收款 0-部分收款 1-已收款
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("-1","未收款"));	   	   
	   l.add(new ConstantDic("0","部分收款"));
	   l.add(new ConstantDic("1","已收款"));	
	   AllConstantDicCategory.put(AccountArStatus, l);
	   
	   //customer_complain.handle_status 0:未处理,1：跟进中 2：已处理
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","未处理"));	   	   
	   l.add(new ConstantDic("1","跟进中"));
	   l.add(new ConstantDic("2","已处理"));
	   
	   AllConstantDicCategory.put(HandleStatus, l);
	   
	   //customer_contract_staff.role参与人角色：从常量获取，BDM-客户经理 BDP-客户合作人;一个合同只有一个BDM
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("BDM","客户经理"));	   	   
	   l.add(new ConstantDic("BDP","客户合作人"));	   	  
	   AllConstantDicCategory.put(ContractStaffRole, l);
	   
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("N","正常"));	   	   
	   l.add(new ConstantDic("B","锁定"));	   	  
	   AllConstantDicCategory.put(UserStatus, l);
	   
	   //account_invoice.status	0初始 1已寄送
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("0","初始"));	   	   
	   l.add(new ConstantDic("1","已寄送"));	   	  
	   AllConstantDicCategory.put(AccountInvoiceStatus, l);
	   
	   //年龄范围 ：20-29，30-39，40-49，50-59.
	   l=new ArrayList();	 	   
	   l.add(new ConstantDic("1","20岁-29岁"));	   	   
	   l.add(new ConstantDic("2","30岁-39岁"));	   	  
	   l.add(new ConstantDic("3","40岁-49岁"));	   	  
	   l.add(new ConstantDic("4","50岁-59岁"));	   	  
	   l.add(new ConstantDic("5","60岁及以上"));	   	  
	   AllConstantDicCategory.put(AgeRange, l);
	   
	   
	   l=new ArrayList();	 //工作年限 	   
	   l.add(new ConstantDic("-1","1年以下"));	   	   
	   l.add(new ConstantDic("1","1-2 年"));	   	   
	   l.add(new ConstantDic("2","3-5年"));	   	  
	   l.add(new ConstantDic("3","6-7年"));	   	  
	   l.add(new ConstantDic("4","8-10年"));	   	  
	   l.add(new ConstantDic("5","10-15年"));	   	  
	   l.add(new ConstantDic("6","15年以上"));	   	  
	   AllConstantDicCategory.put(WorkRange, l);
	   
//	   public static String MeetingRoomStatus ="MeetingRoomStatus";  //会议室状态
//		public static String MeetingRoomType ="MeetingRoomType";  //会议室类型
//		public static String PeriodType ="PeriodType";  //周期类型
//		public static String MeetingRoomOrderType ="MeetingRoomOrderType";  //会议室预定状态
//	   public static String MeetingRoomUseType ="MeetingRoomUseType";  //会议室使用类型
	   l=new ArrayList();	 //会议室状态	   
	   l.add(new ConstantDic("0","正常"));	   	   
	   l.add(new ConstantDic("1","作废"));	   	   	   	   	 
	   AllConstantDicCategory.put(MeetingRoomStatus, l);
	   
	   l=new ArrayList();	 //会议室预定状态	   
	   l.add(new ConstantDic("A","有效"));	   	   
	   l.add(new ConstantDic("B","取消"));	   	   	   	   	 
	   AllConstantDicCategory.put(MeetingRoomOrderStatus, l);
	   
	   l=new ArrayList();	 //会议室类型	   
	   l.add(new ConstantDic("1","单一会议室"));	   	   
	   l.add(new ConstantDic("2","组合/虚拟会议室"));	   	   	   	   	 
	   AllConstantDicCategory.put(MeetingRoomType, l);

	   l=new ArrayList();	 //会议室使用类型	   
	   l.add(new ConstantDic("1","本地会议"));	   	   
	   l.add(new ConstantDic("2","面试"));
	   l.add(new ConstantDic("3","内部电话会议"));	 	
	   AllConstantDicCategory.put(MeetingRoomUseType, l);
	   
	   l=new ArrayList();	 //会议室类型	   
	   l.add(new ConstantDic("1","单次"));	   	   
	   l.add(new ConstantDic("2","每天"));
	   l.add(new ConstantDic("3","每周"));
	   l.add(new ConstantDic("4","每两周"));
	   AllConstantDicCategory.put(PeriodType, l);
	   
	   l=new ArrayList();	 //业绩类型	   
	   l.add(new ConstantDic("A","OFFER"));	   	   
	   l.add(new ConstantDic("B","PN"));
	   l.add(new ConstantDic("C","到款"));	   
	   AllConstantDicCategory.put(YjType, l);
	   
	   l=new ArrayList();	 //业绩类型	   
	   l.add(new ConstantDic("A","OFFER"));	   	   
	   l.add(new ConstantDic("B","业绩"));
	     
	   AllConstantDicCategory.put(YjmType, l);
	   
	   l=new ArrayList();	 //角色分类	   	   	   	   
	   l.add(new ConstantDic("C","Consultant"));
	   l.add(new ConstantDic("R","Researcher"));
	   l.add(new ConstantDic("O","OTHER"));	  
	     
	   AllConstantDicCategory.put(RoleType, l);
	   

	   
	}
	public static Map getAllConstantDicCategory(){
		return AllConstantDicCategory;
	}
	public static List getConstantDicCategory(String category){
		return (List)AllConstantDicCategory.get(category);
	}
	public static String getConstantDicCategoryValue(String category,String code){
		//return (List)AllConstantDicCategory.get(category);
		if (StringHelper.isEmpty(code)) return code;
		List l=(List)AllConstantDicCategory.get(category);
		ConstantDic c=null;
		for(int i=0;l!=null&&i<l.size();i++){
			c=(ConstantDic)l.get(i);
			if (code.equals(c.getCode())) return c.getValue();
		}
		return code;
	}
	public static String getConstantDicCategoryValueEn(String category,String code){
		//return (List)AllConstantDicCategory.get(category);
		if (StringHelper.isEmpty(code)) return code;
		List l=(List)AllConstantDicCategory.get(category);
		ConstantDic c=null;
		for(int i=0;l!=null&&i<l.size();i++){
			c=(ConstantDic)l.get(i);
			if (code.equals(c.getCode())) return c.getValueEn();
		}
		return code;
	}
	public ConstantDic(){
		
	}
	public ConstantDic(String code,String value){
		 this.code=code;
		 this.value=value;
	}
	public ConstantDic(String code,String value,String valueEn){
		 this.code=code;
		 this.value=value;
		 this.valueEn=valueEn;
	}
	private String category;
	private String code;
	private String value;
	private String valueEn="";
	public String getValueEn() {
		return valueEn;
	}
	public void setValueEn(String valueEn) {
		this.valueEn = valueEn;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}

}
